<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>挪动和缩进</title>
    <style>
        .top{
            width: 1000px;
            height: 80px;
            background: #bbffaa;
            margin: 0 auto;
        }
        .shopcar{
            width: 200px;
            height: 80px;
            text-align: center;
            line-height: 80px;
            font-size: 16px;
            background:red url("./images/shopcar.jpg") no-repeat 15px center;
            display: inline-block;
            float: left;
        }
        .number{
            width: 100px;
            height: 80px;
            text-indent: 20px;
            /*text-align: center;*/
            line-height: 80px;
            background: lime url("./images/icon.jpg") no-repeat 70px center;
            display: inline-block;
            float: left;
        }
    </style>
</head>
<body>
<div class="top">
    <div class="shopcar">购物车</div>
    <div class="number">0</div>
</div>
</body>
</html>